<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tenant-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary(array($user,$model)); ?>

	<div class="row">
		<?php echo $form->labelEx($user,'FirstName'); ?>
		<?php echo $form->textField($user,'FirstName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'FirstName'); ?>
	</div>
	
    <div class="row">
		<?php echo $form->labelEx($model,'MiddleInitial'); ?>
		<?php echo $form->textField($model,'MiddleInitial',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'MiddleInitial'); ?>
	</div>
    
	<div class="row">
		<?php echo $form->labelEx($user,'LastName'); ?>
		<?php echo $form->textField($user,'LastName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'LastName'); ?>
	</div>
    
   	<div class="row">
		<?php echo $form->labelEx($model,'DateOfBirth'); ?>
		<?php //echo $form->textField($model,'DateOfBirth');
		$this->widget('zii.widgets.jui.CJuiDatePicker', array(
    
	'model'=>$model,
    'attribute'=>'DateOfBirth',
    // additional javascript options for the date picker plugin
    'options'=>array(
		'dateFormat'=>'yy-mm-dd',
        'showAnim'=>'fold',
    ),
    'htmlOptions'=>array(
        
    ),
));
		 ?>
		<?php echo $form->error($model,'DateOfBirth'); ?>
	</div>
	
   	<div class="row">
		<?php echo $form->labelEx($user,'email'); ?>
		<?php echo $form->textField($user,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($user,'email'); ?>
	</div>
    
	<div class="row">
		<?php echo $form->labelEx($model,'LastFour'); ?> 
		<?php echo $form->textField($model,'LastFour',array('size'=>4,'maxlength'=>4)); ?> (last four of the ss number)
		<?php echo $form->error($model,'LastFour'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Other Last Name'); ?>
		<?php echo $form->textField($model,'OtherLastName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'OtherLastName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Other Last Name2'); ?>
		<?php echo $form->textField($model,'OtherLastName2',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'OtherLastName2'); ?>
	</div>

	

	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->